<?phpclass API	{	/*	* Adding files	* You may add files to the api directory and call them with this method.	* 	* This API class is using the dbcon CLASS from WINN.WS	*/	function GetFile($file) {		include 'api/_' . $file . '.php';	}		function GetPostByID($id) {		// Added for version 2.4.5		$db = new dbcon();		$idarry = array();		$idarry[] = 'id=' . $id;		$query = $db->selectwhere('v2_posts','*',$idarry);		$row = mysql_fetch_array($query);		return $row;	}		// Un-tested	function GetPostsByEmail($email) {		$db = new dbcon();		$idarry = array();		$idarry[] = 'email=' . sanisql($email);		$query = $db->selectwhere('v2_posts','*',$idarry);		return $query; // This will return the array of posts	}		// Un-tested	function GetPostsALL() {		$db = new dbcon();		$query = $db->selectall('v2_posts','*');		return $query; // This will return the array of posts	}}?>